This section contains basic information on how to get started using DarkNet and how to use this documentation.
C++
#include <MikeNet.h> must
be at the top of your code.
If you did not use the automatic installer to install DarkNet then you may have to include the full file name e.g. #include “C:/MikeNet.h”
DBP
In DBP, commands are not all one word
and each word is separated by a space e.g. mn Start Server.
The following commands are documented but not available in DBP:
The following commands unique to DBP:
At points within this documentation, data types that are not applicable to DBP are referred to. Here is a list of their equivalent meaning in DBP:
| Documentation data type | Equivalent DBP data type |
| char * | String |
| unsigned short | Integer |
| int | Integer |
| bool | Integer that is either 1 or 0
(0 = false, 1 = true) |
| unsigned int | Integer that is not below 0 |
| double | Double float |
| const char * | String |
| Long long int | Double integer |
.NET
Example .NET languages include C# and VB.NET.
All DarkNet commands are contained with
the mn class. e.g. to access mnStartServer type mn.StartServer.
The mnError exception class is included
separately, not within the mn class.
The packet class is called Packet and
is contained with the mn class.
The following commands are documented but not available in .NET:
The following commands are unique to .NET:
At points within this documentation, data types that are not applicable to .NET are referred to. Here is a list of their equivalent meaning in .NET:
| Documentation data type | Equivalent .NET data type |
| char * | String |
| const char * | String |
| Long long int | Long |
| Short int | Short |
| Char | sByte |
| Unsigned char | Byte |
For DarkNet to work with your project
you must reference the MikeNet DLL. After installation it should
appear in a list of .NET DLLs.
In Microsoft Visual Studio 2008 C# you can reference the DLL by following these steps:
- In the solution explorer (if you can’t see it then click view, solution explorer on the toolbar) right click on the reference folder and click on ‘Add Reference’.
- In the .Net tab there is a list of DLLs; find MikeNet (component name) in this list; select it and click OK.